- /* slmshort.cpp by K.Tsuru */
- // function ID = 206 DRADIX, BRADIX
- /**********************
- SLong class
- set a short value v
- within two figures
- ***********************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- void SLong::SetShort(short v){
- //When sign == UNDECIDED Sign() yields an error.
- if(RawSign()) SetZero();
- if(v == 0) return;
- SetSign(v);
- fType aV = (fType)abs(v), rdx = Radix();
- if(aV < rdx) figure[0] = aV;
- else {
- if((figure[0] = aV%rdx) == 0) aTail = 1u;
- figure[1] = aV/rdx; aHead = 1u;
- }
- }
slmshort.cpp : last modifiled at 2017/03/13 14:32:01(532 bytes)
created at 2017/10/07 10:26:49
The creation time of this html file is 2017/11/09 14:52:03 (Thu Nov 09 14:52:03 2017).